import axios from "../server";

// 注册
export const register = (username: string, password: string) =>
  axios.post("/ccc/api/regUser", {
    username,
    password,
  });
// 登录
export const login = (username: string, password: string) => {
  return axios.post("/ccc/api/login", {
    username,
    password,
  });
};
